<script language="javascript"> 

   function isInt(str)
   {  	     	  
   	  var reg = /^\d+$/;
   	  if(reg.test(str)) return  true ;
   	  else              return  false;   	  	  	      	  	   	     	   	
   }
</script> 